# build_and_commit.sh
# Build the website and commit it to the git repo
# Wen Yi

raw_git_repo='https://atomgit.com/zouxiangneihe/website.git'
public_git_repo='https://atomgit.com/zouxiangneihe/website_public.git'

echo comment:
read comment

rm -rf build

git add .
git commit -m "$comment"
git push -f $raw_git_repo master

npm run build
cd build

git init
git add .
git commit -m "$comment"
git push -f $public_git_repo master
